package com.dhapi.demo.web.filter;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;


public class InHttpServletRequest extends
        javax.servlet.http.HttpServletRequestWrapper {

    private String sid;


    public InHttpServletRequest(HttpServletRequest request) {
        super(request);
        this.sid = request.getSession().getId();
    }

    @Override
    public HttpSession getSession(boolean create) {
        return  new InHttpSession(sid,super.getSession(create));
    }

    @Override
    public HttpSession getSession() {
        return  new InHttpSession(sid,super.getSession());
    }
}
